package com.example.demo_task_pool;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * Spring Boot使用@Async实现异步调用：自定义线程池
 */
@EnableAsync
@SpringBootApplication
public class DemoTaskPoolApplication {

	public static void main(String[] args) {
		SpringApplication.run(DemoTaskPoolApplication.class, args);
	}
}
